<template>
  <div class="fixed">
    <div class="interactive" >
        <div class="advisory" @mouseover = "mouseover" @mouseout = "mouseout">
            <img  src="/home/static/imgs/RoundedRectangle1.png" alt="点击这里给我发消息" />
        </div>
        <a href="#">
            <img src="/home/static/imgs/up.png" alt="回顶部">
        </a>
    </div>
    <transition name="fade"> 
        <div class="hide-interactive" v-show="showHidden" @mouseout = "mouseout_1" @mouseover = "mouseover_1">
            <div class="phone">
                <img src="/home/static/imgs/Shape1.png">
                <div>
                    <p>销售热线</p>
                    <p>13806000420</p>
                </div>
            </div>
            <div class="phone">
                <img src="/home/static/imgs/Shape1.png">
                <div>
                    <p>售后热线</p>
                    <p>18683958998</p>
                </div>
            </div>
            <!-- <div class="qq">
                <a target="_blank" href="javascript:void(0);">
                <img src="../assets/img/message.png" alt="QQ咨询图片">
                <span>QQ咨询</span>
                </a>   
            </div> -->
        </div>
    </transition>
  </div>
</template>
<script>

export default {
  name: 'Fixeds',
  data(){
      return{
        showHidden: false
      }
  },
  methods: {
      mouseover(){
          this.showHidden = !this.showHidden;
          
      },
      mouseout(){
          this.showHidden = !this.showHidden;
      },
      mouseover_1(){
          this.showHidden = !this.showHidden;     
      },
      mouseout_1(){
          this.showHidden = !this.showHidden;
      }
  }
}
</script>
<style scoped>
.fixed{
    width: 281px;
    height: 270px;
    position: fixed;
    top: 460px;
    right: 0px;
    z-index: 999; 
}
.fixed .interactive{
    z-index: 999;  
}
.fixed .interactive .advisory{
    width: 59px;
    height: 60px;
    background-color: #e5e5e5;
    transition: background-color 1.5s; 
    text-align: center;
    line-height: 60px;
    position: absolute;
    top: 0;
    right: 0;
}
.fixed .interactive .advisory a{
    display: inline-block;
    width: 59px;
    height: 60px;
    position: relative;
}
.fixed .interactive .advisory a span{
    position: absolute;
    top: 21px;
    left: 30px;
    color: #fff;
    font-size: 18px;
}
.fixed .interactive .advisory img{
    vertical-align: middle;
}
.fixed .interactive .advisory:hover{
    background-color: #e71f19;
}
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to {
  opacity: 0;
}
.fixed .interactive .leave{
    width: 59px;
    height: 60px;
    background-color: #e5e5e5;
    line-height: 60px;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 1.5s;
    position: absolute;
    top: 59px;
    right: 0;
}
.fixed .interactive .leave:hover{
    background-color: #e71f19;
}
.fixed .interactive .leave img{
    vertical-align: middle;
}
.fixed .interactive>a{
    display: inline-block;
    width: 59px;
    height: 60px;
    background-color: #e5e5e5;
    position: absolute;
    margin: 10px 0 0;
    transition: background-color 1.5s;
    line-height: 60px;
    top: 129px;
    right: 0;
    text-align: center;
}
.fixed .interactive>a:hover{
    background-color: #e71f19;
}
.fixed .interactive>a>img{
    vertical-align: middle;
}
.fixed .hide-interactive{
    margin-left: 30px;
    width: 200px;
    height: 200px;
    text-align: center;
}
.fixed .hide-interactive .phone{
    color: #fff;
    font-size: 16px;
    background-color: #009ae9;
    opacity: .8;
    height: 56px;
    text-align: center;
    padding-top: 15px;
    border: 1px solid #ccc;
    width: 180px;
}
.fixed .hide-interactive .phone div{
    display: inline-block;
}
.fixed .hide-interactive .qq{
    background-color: #fff;
    height: 80px;
    font-size: 18px;
    line-height: 80px;
    opacity: .8;
    width: 180px;
}
.fixed .hide-interactive .qq a{
    text-align: center;
    text-decoration: none;
    color: #009ae9; 
}
.fixed .hide-interactive .qq a img{
    vertical-align: -7px;
}
</style>
